package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.CarOperateMapper;
import com.whq.entity.CarOperate;
import com.whq.service.CarOperateService;

@Service(value = "tdCarOperateService")
public class CarOperateServiceImpl implements CarOperateService {

    @Autowired
    private CarOperateMapper<CarOperate>tdCarOperateMapper;
    
    @Override
    public Integer insertSelective(CarOperate tdCarOperate) throws Exception {
           return this.tdCarOperateMapper.insertSelective(tdCarOperate);
        }

    @Override
    public Integer insertBatch(List<CarOperate> tdCarOperate) throws Exception {
           return this.tdCarOperateMapper.insertBatch(tdCarOperate) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdCarOperateMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdCarOperateMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(CarOperate tdCarOperate) {
           return this.tdCarOperateMapper.updateByPrimaryKeySelective(tdCarOperate);
    }

    @Override
    public CarOperate findById(Object id) {
           return (CarOperate) this.tdCarOperateMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<CarOperate> selectByCondition(CarOperate tdCarOperate) {
           return (List<CarOperate>) this.tdCarOperateMapper.selectByCondition(tdCarOperate);
    }

    @Override
    public Integer selectCountByCondition(CarOperate tdCarOperate) {
           return  this.tdCarOperateMapper.selectCountByCondition(tdCarOperate);
    }

}
